@model T2.WebSecurity.ASPMVC.ViewModel.ApplicationProfileDataViewModel
@using T2.WebSecurity.ASPMVC.Entity.Interface        
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Customer Search</title>
</head>
<body>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            jQuery("#applicationprofiledataslist").jqGrid({
            url: '' ,
            datatype: 'local',
            mtype: 'POST',
			colNames: ['', '', ],
            colModel: [
           { name: 'imgUdt', sortable:false, index: 'imgUdt', width: 20, editable: false, align: 'center' },
           { name: 'imgNew', sortable:false, index: 'imgNew', width: 20, editable: false, align: 'center' },
		               pager: jQuery('#pager'),
            rowNum: 20,
            rowList: [5, 10, 20, 50],
            sortname: 'ApplicationProfileDataID',
            sortorder: "desc",
            multiselect: false,
            shrinktofit: true,
            height: 250,
            width: 750,
            viewrecords: true,
            caption: 'ApplicationProfileData Search',
			loadError: function (xhr, textStatus, errorThrown) {
                       var error_msg = xhr.responseText
                       var msg = "Some errors occurred during processing:"
                       msg += '\n\n' + error_msg
                       $('#dialog').html(msg);
                       $('#dialog').dialog({ title: "Error" });
                   },
			onCellSelect: function(rowid, iCol, cellcontent) {
	                // Click in cell.
	                if (iCol == 0) {
					
						
	                }
					if (iCol == 1) {
					
	                }
	                return true;

	            },

            onSelectRow: function(ids) {
				ApplicationProfileDataID = ids ;
               return true;
            }

        });



            jQuery("#applicationprofiledataslist").jqGrid('navGrid', '#pager',
            {
                edit: false, add: false, del: false, search: true, refresh: true
            }

            );


            $('#trgSearch').click(function (event) {

var myUrl ="./ApplicationProfileData/Search?;
                
                $("#applicationprofiledataslist").setGridParam({ datatype: 'json', url: myUrl }).trigger("reloadGrid");
            });

        }); 
    </script>

    
    

        
        <input type="button" value="Search" id="trgSearch" />
		<table id="applicationprofiledataslist" class="scroll" cellpadding="0" cellspacing="0" ></table>
        <div id="pager" class="scroll" style="text-align:center;"></div>
</body>
</html>

